package io.persimmon.core.module.lock.constant;

import io.persimmon.core.entity.base.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum LockResult implements BaseEnum {

    SUCCESS("成功"),
    LOCK_EXIST("锁已经存在"),
    SERVER_ERROR("服务器错误");

    private String desc;

    public boolean isSuccess() {
        return this == SUCCESS;
    }
}
